package com.xiyu.service.enums.material.stock;

import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.Arrays;
import com.xiyu.service.enums.common.IntArrayValuable;

/**
* 物资出库单领用人类型
*/
@Getter
@AllArgsConstructor
public enum MaterialStockOutReceiverTypeEnum implements IntArrayValuable {

    /**
    * 老人
    */
    ELDER(1, "老人"),
    /**
    * 员工
    */
    USER(2, "员工");

    private final Integer value;

    private final String label;

    public static final int[] VALUES = Arrays.stream(values()).mapToInt(MaterialStockOutReceiverTypeEnum::getValue).toArray();

    @Override
    public int[] getValues() { return VALUES;}

    public static final String[] LABELS = Arrays.stream(values()).map(MaterialStockOutReceiverTypeEnum::getLabel).toArray(String[]::new);

    @Override
    public String[] getLabels() { return LABELS; }

}
